' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     R E C O L O R   S P E E D   T E S T E R   -   4 5 0   L I N E S 
 
 ' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 '   - - - - - - -   C o l o r A l l L i n e s _ S t a r t i n g W i t h                                           4 7 0   m S 
 
 '   - - - - - - -   C o l o r A l l L i n e s _ S t a r t i n g W i t h _ A n d _ C o n t a i n i n g             2 8 0   m S 
 
 L a b e l   p i p p o 
 
 R e t u r n 
 
 
 
 '   - - - - - - -   C o l o r A l l L i n e s _ S t a r t i n g W i t h                                           1 6 0   m S 
 
 F o r   v 1   =   0   T o   9 
 
 N e x t 
 
 
 
 '   - - - - - - -   C o l o r A l l L i n e s _ S t a r t i n g W i t h                                           1 2 0   m S 
 
 V a r i a b l e   S t r i n g   I n f o 2           ' t e s t   r e s u l t 
 
 V a r i a b l e   S t r i n g   R e s u l t 
 
 
 
 '   - - - - - - -   C o l o r A l l L i n e s _ S t a r t i n g W i t h                                           2 0 0   m S 
 
 I f   v 1   =   v 2 
 
 E n d I f 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '           N a m e : 	 W X M _ M e a s u r e 1 _ V 5 . 0 5 . 2 . t x t                       D a t e :   0 2   O c t o b e r   2 0 1 9 
 
 '         A u t o r :   L e o n a r d o   D E   P A L O   P h . D . 
 
 '         S c o p e :   A u t o m a t i c   m e a s u r e m e n t 
 
 '   H a r d w a r e :   C a r t e s i a n   S y s t e m . 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' 
 
 ' L o a d   B M _ F o u n d a t i o n 0 . j p g 
 
 ' = = = = = = = = = = = = = = = =   G E N E R A T I N G   T H E   L O G   F I L E   N A M E   = = = = = = = = = = = = = = = = = = = = = 
 
 ' s 2   =   " M e a s u r e m e n t . t x t " 
 
 ' S 9   =   " -   D a t e   -   "   +   "   -   T I M E   -   "   +   "   C y c l e   "   +   "   R E S U L T   " 
 
 ' S a v e   S t r i n g T o F i l e   s 9   s 2 
 
 ' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' 
 
 ' L o a d   B M _ F o u n d a t i o n 0 . j p g 
 
 ' = = = = = = = = = = = = = = = =   G E N E R A T I N G   T H E   L O G   F I L E   N A M E   = = = = = = = = = = = = = = = = = = = = = 
 
 ' s 2   =   " M e a s u r e m e n t . t x t " 
 
 ' S 9   =   " -   D a t e   -   "   +   "   -   T I M E   -   "   +   "   C y c l e   "   +   "   R E S U L T   " 
 
 ' S a v e   S t r i n g T o F i l e   s 9   s 2 
 
 ' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 L o a d   T o c . w a v 
 
 O p t i o n   S p e e d   9 
 
 B u t t o n   1   T e x t   " H O M E   A l l " 
 
 B u t t o n   2   T e x t   " H O U S E " 
 
 
 
 B u t t o n   4   T e x t   " M E A S U R E M E N T " 
 
 
 
 B u t t o n   5   T e x t   " H o m e   M 0 ( X ) " 
 
 B u t t o n   6   T e x t   " H o m e   M 1 ( Y ) " 
 
 B u t t o n   7   T e x t   " H o m e   M 2 ( Z ) " 
 
 
 
 B u t t o n   7   T e x t   " L A S E R " 
 
 
 
 L o a d   T h e r e m i n o _ H A L \ T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ H A L \ T h e r e m i n o _ S l o t V i e w e r . e x e 
 
 ' L o a d   T h e r e m i n o _ H A L \ T h e r e m i n o _ M e d i a P l a y e r . e x e 
 
 L o a d   T h e r e m i n o _ H A L \ T h e r e m i n o _ T e r m i n a l . e x e 
 
 ' L o a d   T h e r e m i n o _ H A L \ T h e r e m i n o _ S l o t s T o S p e e c h . e x e 
 
 ' L o a d   T h e r e m i n o _ H A L \ \ T h e r e m i n o _ M i c r o V i d e o _ V 1 . 4 _ C A M \ T h e r e m i n o _ M i c r o V i d e o \ T h e r e m i n o _ M i c r o V i d e o . e x e 
 
 ' L o a d   T h e r e m i n o _ H A L \ \ T h e r e m i n o _ M i c r o V i d e o _ V 1 . 4 _ V i d e o \ T h e r e m i n o _ M i c r o V i d e o \ T h e r e m i n o _ M i c r o V i d e o . e x e ' L o a d   T h e r e m i n o _ H A L \ T h e r e m i n o _ S i g n a l S c o p e . e x e 
 
 L o a d   T h e r e m i n o _ H A L \ T h e r e m i n o _ S i g n a l S c o p e . e x e 
 
 
 
 V a r i a b l e   N u m e r i c   D i g i t T i m e 
 
 V a r i a b l e   N u m e r i c   N u m T e s t 
 
 V a r i a b l e   N u m e r i c   N u m C y c l e s 
 
 V a r i a b l e   N u m e r i c   C u r r e n t 
 
 
 
 V a r i a b l e   N u m e r i c   C o o r d _ X 
 
 V a r i a b l e   N u m e r i c   C o o r d _ Y 
 
 V a r i a b l e   N u m e r i c   C o o r d _ Z 
 
 V a r i a b l e   N u m e r i c   C o o r d _ A 
 
 V a r i a b l e   N u m e r i c   L o w S p e e d 
 
 
 
 V a r i a b l e   N u m e r i c   N u m M e a s u r e 
 
 V a r i a b l e   N u m e r i c   M e a s u r e 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t M o t o r 
 
 V a r i a b l e   N u m e r i c   S l o t S e n s o r 
 
 V a r i a b l e   N u m e r i c   S p e e d S e a r c h 
 
 V a r i a b l e   N u m e r i c   S p e e d R e t u r n 
 
 V a r i a b l e   N u m e r i c   D e c l a r e d Z e r o 
 
 V a r i a b l e   N u m e r i c   I n i t i a l P o s i t i o n 
 
 
 
 
 
 V a r i a b l e   S t r i n g   I n f o 
 
 V a r i a b l e   S t r i n g   P o i n t 
 
 
 
 
 
 
 
 K e y   R i g h t 	   	 G o s u b   M o v e R i g h t M 0 
 
 K e y   L e f t   	 	 G o s u b   M o v e L e f t M 0 
 
 K e y   U p   	 	 	 G o s u b   M o v e F a r M 1 
 
 K e y   D o w n   	 	 G o s u b   M o v e N e a r M 1 
 
 K e y   P a g e u p 	 	 G o s u b   M o v e U p M 2 
 
 K e y   P a g e d o w n 	 G o s u b   M o v e D o w n M 2 
 
 
 
 G o s u b   R E D 
 
 S t o p 
 
 
 
 L a b e l   " M E A S U R E M E N T " 
 
 	 G o s u b   B L K 
 
 	 s 2   =   " M e a s u r e _ r e p e t i t i o n _ 2 . t x t " 
 
 	 S a v e   S t r i n g T o F i l e   " - - - - - - - - = = = = = = = = = =   S T A R T   = = = = = = = = = = - - - - - - - "   s 2 
 
 	 S 9   =   " -   D a t e   -   "   +   "   -   T I M E   -   "   +   "   C y c l e   "   +   "     M e a s u r e     "   +   " P o i n t " 
 
 	 S a v e   S t r i n g T o F i l e   s 9   s 2 
 
 	 ' N u m T e s t   =   I n p u t   " T e l l   m e   h o w   m a n y   c y c l e : " 
 
 	 N u m T e s t   =   3 0 0 0 
 
 	 G o s u b   " H O M E   A L L " 
 
 	 F o r   N u m M e a s u r e   =   1   T o   N u m T e s t 
 
 	 	 G o s u b   M e a s u r e S c r e w 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e F l a t 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e B o r d e r 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e L o w e r L e f t 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e U p p e r L e f t 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e U p p e r M i d d l e 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e U p p e r R i g t h 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e L o w e r R i g t h 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   M e a s u r e L o w e r M i d d l e 
 
 	 	 G o s u b   S a v e D a t a 
 
 	 	 G o s u b   " H O U S E " 
 
 	 N e x t 
 
 	 G o s u b   B L U 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e S c r e w " 
 
 	 P o i n t   =   A 
 
 	 C o o r d _ X   =     4 8 . 1 5 6 
 
 	 C o o r d _ Y   =   1 8 1 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 W a i t   S e c o n d s   1 . 5 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e F l a t " 
 
 	 P o i n t   =   B 
 
 	 C o o r d _ X   =     5 6 . 5 
 
 	 C o o r d _ Y   =   1 7 0 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e B o r d e r " 
 
 	 P o i n t   =   C 
 
 	 C o o r d _ X   =     4 6 . 5 
 
 	 C o o r d _ Y   =   1 7 0 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e L o w e r L e f t " 
 
 	 P o i n t   =   D 
 
 	 C o o r d _ X   =     6 0 
 
 	 C o o r d _ Y   =   1 8 0 . 5 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e U p p e r L e f t " 
 
 	 P o i n t   =   E 
 
 	 C o o r d _ X   =     6 0 . 5 
 
 	 C o o r d _ Y   =   1 6 4 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e U p p e r M i d d l e " 
 
 	 P o i n t   =   F 
 
 	 C o o r d _ X   =     8 7 
 
 	 C o o r d _ Y   =   1 6 5 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e U p p e r R i g t h " 
 
 	 P o i n t   =   G 
 
 	 C o o r d _ X   =   1 2 1 . 5 
 
 	 C o o r d _ Y   =   1 6 4 . 5 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e L o w e r R i g t h " 
 
 	 P o i n t   =   H 
 
 	 C o o r d _ X   =   1 2 0 . 5 
 
 	 C o o r d _ Y   =   1 8 1 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " M e a s u r e L o w e r M i d d l e " 
 
 	 P o i n t   =   I 
 
 	 C o o r d _ X   =     9 7 . 5 
 
 	 C o o r d _ Y   =   1 7 8 
 
 	 C o o r d _ Z   =     3 4 . 1 4 
 
 	 G o s u b   " E X E C   M O V E " 
 
 	 M e a s u r e   =   S l o t ( 3 7 ) 
 
 	 W a i t   S e c o n d s   1 
 
 R e t u r n 
 
 
 
 L a b e l   " E X E C   M O V E " 
 
 	 G o s u b   G R E 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 	 S l o t ( 1 )   =   C o o r d _ X 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 	 S l o t ( 3 )   =   C o o r d _ Y 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 	 S l o t ( 5 )   =   C o o r d _ Z 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 	 F o r   L o w S p e e d   =   1 0 0   T o   0   S t e p   - 1 
 
 	 	 W a i t   S e c o n d s   0 . 0 1 
 
 	 	 S l o t ( 5 )   =   S l o t ( 5 )   -   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   " S a v e D a t a " 
 
 	 s 1   =   " " 
 
 	 s 1   =   N o w 
 
 	 s 1   =   s 1   +   "     "   +   F o r m a t ( N u m M e a s u r e ,   " 0 0 0 0 0 " )   +   "       "   +   F o r m a t ( M e a s u r e ,   " 0 0 0 . 0 0 0 " ) 
 
 	 s 1   =   s 1   +   "         "   +   P o i n t 
 
 	 P r i n t   s 1 
 
 	 S a v e   S t r i n g T o F i l e   s 1   s 2 
 
 	 S l o t ( 5 ) 	 =   5 0 	 	 	 ' R a i s e   Z   t o   s a f e   a r e a 
 
 R e t u r n 
 
 
 
 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' - - - - -   S   U   B   R   O   U   T   I   N   E       A   R   E   A     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   = = = = = = = = = = = = = = =   H O M E   A L L   M O T O R s   M 0 ,   M 1 ,   M 2   = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   " H O M E   A l l " 
 
 	 G o s u b   B L U 
 
 	 S l o t ( 2 )   =   S l o t ( 2 )   -   1 5 	 	 	 	 ' R a i s e   Z   f o r   s a f e t y 
 
 	 G o s u b   " H o m e   M 3 ( A ) " 
 
 	 G o s u b   " H o m e   M 2 ( Z ) " 
 
 	 G o s u b   " H o m e   M 1 ( Y ) " 
 
 	 G o s u b   " H o m e   M 0 ( X ) " 
 
 R e t u r n 
 
 
 
 L a b e l   " H o m e   M 0 ( X ) " 
 
 	 S l o t M o t o r   =   1 
 
 	 S l o t S e n s o r   =   1 9 
 
 	 S p e e d S e a r c h   =   - 0 . 1 
 
 	 S p e e d R e t u r n   =   + 0 . 0 0 5 
 
 	 D e c l a r e d Z e r o   =   0 
 
 	 I n i t i a l P o s i t i o n   =   1 
 
 	 G o s u b   " H o m e " 
 
 R e t u r n 
 
 
 
 L a b e l   " H o m e   M 1 ( Y ) " 
 
 	 S l o t M o t o r   =   3 
 
 	 S l o t S e n s o r   =   2 0 
 
 	 S p e e d S e a r c h   =   - 0 . 1 
 
 	 S p e e d R e t u r n   =   + 0 . 0 5 
 
 	 D e c l a r e d Z e r o   =   0 
 
 	 I n i t i a l P o s i t i o n   =   1 
 
 	 G o s u b   " H o m e " 
 
 R e t u r n 
 
 
 
 L a b e l   " H o m e   M 2 ( Z ) " 
 
 	 S l o t M o t o r   =   5 
 
 	 S l o t S e n s o r   =   2 1 
 
 	 S p e e d S e a r c h   =   + 0 . 1 
 
 	 S p e e d R e t u r n   =   - 0 . 0 0 5 
 
 	 D e c l a r e d Z e r o   =   1 0 3 
 
 	 I n i t i a l P o s i t i o n   =   1 0 0 
 
 	 G o s u b   " H o m e " 
 
 R e t u r n 
 
 
 
 L a b e l   " H o m e   M 3 ( A ) " 
 
 	 S l o t M o t o r   =   2 5 
 
 	 S l o t S e n s o r   =   3 1 
 
 	 S p e e d S e a r c h   =   - 0 . 0 8 
 
 	 S p e e d R e t u r n   =   + 0 . 0 5 
 
 	 D e c l a r e d Z e r o   =   0 
 
 	 I n i t i a l P o s i t i o n   =   1 
 
 	 G o s u b   " H o m e " 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = =   H O U S E   A L L   M O T O R S   M 0 ,   M 1 ,   M 2   = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   " H O U S E " 
 
 	 G o s u b   B L U 
 
 	 S l o t ( 5 )   =     9 8 	   	 ' Z   R a i s e 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 	 S l o t   1   =     2           	 ' X   g o   t o   H O U S E 
 
 	 S l o t   3   =     2           	 ' Y   g o   t o   H O U S E 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 	 G o s u b   W H I 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = =   H O M E   M O T O R   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   " H o m e " 
 
 	 G o s u b   B l u 
 
 	 I f   S l o t ( S l o t S e n s o r )   >   5 0 0             '   d e t a c h   I f   s e n s o r   a c t i v e 
 
 	 	 S l o t ( S l o t M o t o r )   =   S l o t ( S l o t M o t o r )   +   S p e e d R e t u r n 
 
 	 E n d I f 
 
 ' 
 
 L a b e l   S e a r c h H o m e 
 
 	 S l o t ( S l o t M o t o r )   =   S l o t ( S l o t M o t o r )   +   S p e e d S e a r c h 
 
 	 W a i t   S e c o n d s   0 . 0 0 1 
 
 	 I f   S l o t ( S l o t S e n s o r )   >   5 0 0   	 '   l i m i t   s w i t c h 
 
 	 	 G o s u b   W a i t M o t o r 	 	 	 '   W A I T   U N T I L   M O T O R   S T O P 
 
 	 	 W a i t   S e c o n d s   0 . 1 	 	 '   s t a b i l i z e   m e c h a n i c a l l y 
 
 	 	 G o t o   D e t a c h S e n s o r 
 
 	 E n d I f 
 
 G o t o   S e a r c h H o m e 
 
 ' 
 
 L a b e l   D e t a c h S e n s o r 
 
 	 S l o t ( S l o t M o t o r )   =   S l o t ( S l o t M o t o r )   +   S p e e d R e t u r n   '   d i r e c t i o n / s p e e d   r e t u r n 
 
 	 W a i t   S e c o n d s   0 . 0 0 1 
 
 	 I f   S l o t   ( S l o t S e n s o r )   <   5 0 0 
 
 	 	 G o s u b   W a i t M o t o r 
 
 	 	 G o t o   A s s i g n Z e r o 
 
 	 E n d I f 
 
 G o t o   D e t a c h S e n s o r 
 
 ' 
 
 L a b e l   A s s i g n Z e r o 
 
 	 S l o t ( S l o t M o t o r )   =   R e s e t 	 	 	 '   R e s e t   t h e   S l o t   v a l u e 
 
 	 W a i t   S e c o n d s   0 . 0 8 	 	     	 	 '   D O   N O T   T O U C H ,   n e e d e d   t o   t h e   M a s t e r ! ! ! ! 
 
 	 S l o t ( S l o t M o t o r )   =   D e c l a r e d Z e r o 
 
 	 G o s u b   W a i t M o t o r 
 
 	 S l o t ( S l o t M o t o r )   =   I n i t i a l P o s i t i o n 
 
 	 G o s u b   W H I 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = =   W   A   I   T   u n t i l   t h e   m o t o r   ( S l o t   M o t o r )   i s   s t o p p e d   = = = = = = = = 
 
 L a b e l   W a i t M o t o r 
 
 '   - - - - - - - - - - - - - - - - - -   t h i s   W a i t   e n s u r e s   t h a t   t h e   m o t o r s   i a   r u n n i n g 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 L a b e l   W a i t 1 
 
 	 	 I f   A b s ( S l o t ( S l o t M o t o r   +   1 ) )   <   0 . 0 1 
 
 	 	 	 R e t u r n 	 	 	 '   n o w   t h e   m o t o r   i s   n o t   r u n n i n g 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 0 5 
 
 	 G o t o   W a i t 1 
 
 '   - - - - - - - - - - - - - - - - - -   t h i s   l i n e   i s   r e q u i r e d   t o   i n d e n t   c o r r e c t l y 
 
 G o t o   W a i t M o t o r 
 
 
 
 '   = = = = = = = = = = = = = = =   W   A   I   T     a l l   M O T O R S   a r e   S T O P P E D   = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   W a i t A l l M o t o r s 
 
 '   - - - - - - - - - - - - - - - - - -   t h i s   W a i t   e n s u r e s   t h a t   t h e   m o t o r s   a r e   r e a l l y   s t a r t e d 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 L a b e l   W a i t A l l M o t o r s 2 
 
 	 	 I f   A b s ( S l o t ( 2 ) )   <   0 . 0 1   A n d   A b s ( S l o t ( 4 ) )   <   0 . 0 1   A n d   A b s ( S l o t ( 6 ) )   <   0 . 0 1   A n d   A b s ( S l o t ( 2 6 ) )   <   0 . 0 1 
 
 	 	 	 R e t u r n 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 1 
 
 	 G o t o   W a i t A l l M o t o r s 2 
 
 '   - - - - - - - - - - - - - - - - - -   t h i s   l i n e   i s   r e q u i r e d   t o   i n d e n t   c o r r e c t l y 
 
 G o t o   W a i t A l l M o t o r s 
 
 
 
 '   = = = = = = = = = = = = = = =   E N A B L E   /   D I S A B L E   M O T O R S   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' L a b e l   E n a b l e M o t o r 
 
 ' 	 S l o t   1 1   =   0 
 
 ' 	 W a i t   S e c o n d s   0 . 2 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   D i s a b l e M o t o r 
 
 ' 	 S l o t   1 1   =   1 0 0 0 
 
 ' 	 W a i t   S e c o n d s   0 . 2 
 
 ' R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = =   T R A F F I C   L I G H T   C O L O R   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   R E D 
 
 	 S l o t   1 6   =     6 0 0 	 	 ' R E D 
 
 	 S l o t   1 7   =         0 	 	 ' G R E 
 
 	 S l o t   1 8   =         0 	 	 ' B L U 
 
 R e t u r n 
 
 
 
 L a b e l   G R E 
 
 	 S l o t   1 6   =         0 	 	 ' R E D 
 
 	 S l o t   1 7   =     5 0 0 	 	 ' G R E 
 
 	 S l o t   1 8   =         0 	 	 ' B L U 
 
 R e t u r n 
 
 
 
 L a b e l   B L U 
 
 	 S l o t   1 6   =         0 	 	 ' R E D 
 
 	 S l o t   1 7   =         0 	 	 ' G R E 
 
 	 S l o t   1 8   =     5 0 0 	 	 ' B L U 
 
 R e t u r n 
 
 
 
 L a b e l   W H I 
 
 	 S l o t   1 6   =     4 5 0 	 	 ' R E D 
 
 	 S l o t   1 7   =     4 5 0 	 	 ' G R E 
 
 	 S l o t   1 8   =     4 5 0 	 	 ' B L U 
 
 R e t u r n 
 
 
 
 L a b e l   B L K 
 
 	 S l o t   1 6   =         0 	 	 ' R E D 
 
 	 S l o t   1 7   =         0 	 	 ' G R E 
 
 	 S l o t   1 8   =         0 	 	 ' B L U 
 
 R e t u r n 
 
 
 
 
 
 '   = = = = = = = = = = = = = = =   M O V E   U S I N G   K E Y B O A R D   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   M o v e R i g h t M 0 
 
 	 S l o t ( 1 )   =   S l o t ( 1 )   +   0 . 5 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e L e f t M 0 
 
 	 S l o t ( 1 )   =   S l o t ( 1 )   -   0 . 5 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e F a r M 1 
 
 	 S l o t ( 3 )   =   S l o t ( 3 )   +   0 . 5 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e N e a r M 1 
 
 	 S l o t ( 3 )   =   S l o t ( 3 )   -   0 . 5 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e U p M 2 
 
 	 S l o t ( 5 )   =   S l o t ( 5 )   +   0 . 5 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e D o w n M 2 
 
 	 S l o t ( 5 )   =   S l o t ( 5 )   -   0 . 5 
 
 R e t u r n 
 
 
 
 
 
 ' = = = = = =   D U M M Y   A R E A   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' = = = = = =   T O   D O   A R E A   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 ' = = = = = =   S E T   U P   A R E A   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 
 
 ' W A T C H   S l o t M o t o r 
 
 ' W A T C H   S p e e d S e a r c h 
 
 ' W A T C H   M e a s u r e 
 
 ' E X E C   S l o t   1   =   3 
 
 